import javax.microedition.lcdui.Canvas;
import javax.microedition.lcdui.Graphics;

public class About extends Canvas
{

	private MenuManager mgr;
	
	public About(MenuManager mm)
	{
		this.mgr = mm;
	}

	protected void keyReleased(int keyCode)
	{
		/* Cancel */
		mgr.itemSelected(0);
	}

	
	public void paint(Graphics g)
	{
		int w = getWidth();
		int h = getHeight();
		
		int em = h / 12;
		
		g.setColor(mgr.getDefaultBGColor());
		g.fillRect(0,0, getWidth(), getHeight());
		
		g.setColor(0x00FFFFFF - g.getColor());
		
		g.drawString("Avtor - Gasper", w / 2 , em, Graphics.BASELINE | Graphics.HCENTER);
		g.drawString("gasper@gmx.com", w / 2 , 2 * em, Graphics.BASELINE | Graphics.HCENTER);
		g.drawString("(C)2010 Gasper", w / 2 , 3 * em, Graphics.BASELINE | Graphics.HCENTER);
		g.drawString("Avtorji ikon", w / 2 , 5 * em, Graphics.BASELINE | Graphics.HCENTER);
		g.drawString("http://www.visualpharm.com", w / 2 , 6 * em, Graphics.BASELINE | Graphics.HCENTER);
		g.drawString("http://walrick.deviantart.com", w / 2 , 7 * em, Graphics.BASELINE | Graphics.HCENTER);
		g.drawString("http://taytel.deviantart.com", w / 2 , 8 * em, Graphics.BASELINE | Graphics.HCENTER);
		g.drawString("http://pixel-mixer.com", w / 2 , 9 * em, Graphics.BASELINE | Graphics.HCENTER);
		g.drawString("(pritisni katerokoli tipko)", w / 2 , 12 * em, Graphics.BASELINE | Graphics.HCENTER);
	}
}
